//
//  AppreciateModel.m
//  FloatClouds
//
//  Created by 黄威 on 16/09/01
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "AppreciateModel.h"
#import "Appreciate.h"

@implementation AppreciateModel

-(void)setValue:(id)value forKey:(NSString *)key{

    [super setValue:value forKey:key];

    if ([key isEqualToString:@"appreciate"]) {
        
        NSMutableArray *array = [NSMutableArray array];
        
        for (NSDictionary *dic in value) {
            
            Appreciate *appreciate = [Appreciate modelWithDic:dic];
            
            [array addObject:appreciate];
            
        }
        
        _appreciate = array;
        
    }



}

@end
